/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

export default {
  path: '/personnel',
  component: Layout,
  name: 'personnel',
  meta: {
    title: '人事管理',
    icon: 'el-icon-user'
  },
  children: [
    {
      path: 'company',
      component: () => import('@/views/personnel/company'),
      name: 'company',
      meta: { title: '公司资质', noCache: true, icon: 'list' }
    },
    {
      path: 'staff',
      component: () => import('@/views/personnel/staff'),
      name: 'staff',
      meta: { title: '人员信息', noCache: true, icon: 'list' }
    },
    {
      path: 'work',
      component: () => import('@/views/personnel/work'),
      name: 'work',
      meta: { title: '考勤管理', noCache: true, icon: 'list' }
    },
    {
      path: 'cart',
      component: () => import('@/views/personnel/cart'),
      name: 'cart',
      meta: { title: '车辆管理', noCache: true, icon: 'list' }
    },
    {
      path: 'dormitory',
      component: () => import('@/views/personnel/dormitory'),
      name: 'dormitory',
      meta: { title: '宿舍管理', noCache: true, icon: 'list' }
    },
    {
      path: 'resource',
      component: () => import('@/views/personnel/resource'),
      name: 'resource',
      meta: { title: '资产管理', noCache: true, icon: 'list' }
    },
    {
      path: 'loss',
      component: () => import('@/views/personnel/loss'),
      name: 'loss',
      meta: { title: '报损报废', noCache: true, icon: 'list' }
    },
    {
      path: 'seal',
      component: () => import('@/views/personnel/seal'),
      name: 'seal',
      meta: { title: '用印申请', noCache: true, icon: 'list' }
    },
    {
      path: 'insure',
      component: () => import('@/views/personnel/insure/insure'),
      name: 'insure',
      meta: { title: '保险管理', noCache: true, icon: 'list' }
    },
    {
      path: 'walkietalkie',
      component: () => import('@/views/personnel/walkietalkie/walkietalkie'),
      name: 'walkietalkie',
      meta: { title: '对讲机管理', noCache: true, icon: 'list' }
    }
  ]
}
